package com.javablog.elasticsearch.query;

import lombok.Data;

import java.util.Map;

//@Data
public class ComprehensiveQueryEventVO {

    private Integer pageSize;

    private Integer pageNum;

    //封装的map查询条件 key 字段名 value查询参数
    private Map<String,Object> map;

    public Integer getPageSize() {
        return pageSize==null?10000:pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize==null?1:pageSize;
    }

    public Integer getPageNum() {
        return pageNum==null?1:pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum==null?10:pageNum;
    }
}
